package com.tansun.easycare.rule.deployonline.model;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 * 部署信息
 *
 * @author WY
 */
@XmlRootElement(name = "Deploy")
public class Deployment {
    /**
     * 部署类型，目前是整体包部署，增量部署待开发
     */
    private String type = "Jar";
    /**
     * 部署目标，执行服务器地址 形如：http://127.0.0.1:8080
     */
    private String target;
    /**
     * 项目名称
     */
    private String projectName;
    /**
     * 中文名称
     */
    private String projectZhName;
    /**
     * 执行服务器用户名
     */
    private String username;
    /**
     * 执行服务器秘密
     */
    private String password;
    /**
     * 包路径
     */
    @XmlTransient
    private String jar;
    /**
     * 版本
     */
    private String version = "1.0";
    /**
     * 入口点列表
     */
    private List<EnterPoint> enterPoint = new ArrayList<EnterPoint>();

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getProjectZhName() {
        return projectZhName;
    }

    public void setProjectZhName(String projectZhName) {
        this.projectZhName = projectZhName;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getJar() {
        return jar;
    }

    public void setJar(String jar) {
        this.jar = jar;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    @XmlElementWrapper(name = "enterPointList")
    public List<EnterPoint> getEnterPoint() {
        return enterPoint;
    }

    public void setEnterPoint(List<EnterPoint> enterPoint) {
        this.enterPoint = enterPoint;
    }


}
